import {Component} from '@angular/core';
import {IonicPage, NavController, NavParams, ViewController} from 'ionic-angular';
import {UtilsProvider} from "../../providers/utils/utils";

@IonicPage({
    segment: 'image_slide'
})
@Component({
    selector: 'page-image-slide',
    templateUrl: 'image-slide.html',
})
export class ImageSlidePage {
    index:number;
    imageList = [];

    constructor(
        public navCtrl: NavController,
        public navParams: NavParams,
        public util: UtilsProvider,
        public viewCtrl: ViewController
    ) {
        this.imageList = this.navParams.get('imagesArray');
        this.index = this.navParams.get('index');
    }

    closeModal(){
        this.viewCtrl.dismiss();
    }


}
